
#ifndef SNAPCACULATOR_H
#define SNAPCACULATOR_H
#include "Snap.h"
#include <qobject.h>
#include <Setting.h>

class SnapCaculator : public QObject
{
	Q_OBJECT
	public:
		SnapCaculator(Snap* fSnap, Snap* bSnap, Setting* setting); 
		~SnapCaculator();

		public slots:
			void caculateCar();
signals:
		void carHappenSignal(const QString& str);
		void carHappenSignal();



	private:
		Snap* m_fSnap;
		Snap* m_bSnap;
		Setting* m_setting;
		bool isCarHappen();


};
#endif
